IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > Take Method : Take<TSource>(IEntityQuery<TSource>,Int32) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function Take(Of TSource)( _ ByVal source As IEntityQuery(Of TSource), _ ByVal count As Integer _ ) As IEntityQuery(Of TSource)
'Usage
Dim source As IEntityQuery(Of TSource) Dim count As Integer Dim value As IEntityQuery(Of TSource) value = EntityQueryExtensions.Take(Of TSource)(source, count)
[Extension()] public static IEntityQuery<TSource> Take<TSource>( IEntityQuery<TSource> source, int count )
var mgr = new DomainModelEntityManager(); var query = mgr.Customers.OrderBy(c=> c.Id).Skip(10).Take(10); var results = query.Execute();
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2